import os

from flask import Flask
import ShieldNet

app = Flask(__name__)

common_save_path = os.path.join(os.getcwd().split("Ai")[0], "Ai", "Model Save")
plot_save_path =  os.path.join(os.getcwd().split("Ai")[0], "Ai", "Plot Save")

def set_save_path(path):
    global common_save_path
    common_save_path = path

def set_plot_save_path(path):
    global plot_save_path
    plot_save_path = path

def get_all_detector():
    return ShieldNet.Detector.all_detectors
